/*
*
* SPDX-License-Identifier: GPL-2.0
*
* Copyright (C) 2011-2018 ARM or its affiliates
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2.
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#if !defined(__OV13858_SENSOR_H__)
#define __OV13858_SENSOR_H__


/*-----------------------------------------------------------------------------
Initialization sequence - do not edit
-----------------------------------------------------------------------------*/

#include "sensor_init.h"

static acam_reg_t setting_4224_3136_4lane_1080m_30fps[] = {
	{0x0103, 0x01, 0xff, 1},
	{0x0300, 0x02, 0xff, 1},
	{0x0301, 0x00, 0xff, 1},
	{0x0302, 0x5a, 0xff, 1},
	{0x0303, 0x00, 0xff, 1},
	{0x0304, 0x00, 0xff, 1},
	{0x0305, 0x01, 0xff, 1},
	{0x030b, 0x06, 0xff, 1},
	{0x030c, 0x02, 0xff, 1},
	{0x030d, 0x88, 0xff, 1},
	{0x0312, 0x11, 0xff, 1},
	{0x3022, 0x01, 0xff, 1},
	{0x3012, 0x40, 0xff, 1},
	{0x3013, 0x72, 0xff, 1},
	{0x3016, 0x72, 0xff, 1},
	{0x301b, 0xF0, 0xff, 1},
	{0x301f, 0xd0, 0xff, 1},
	{0x3106, 0x15, 0xff, 1},
	{0x3107, 0x23, 0xff, 1},
	{0x3500, 0x00, 0xff, 1},
	{0x3501, 0x80, 0xff, 1},
	{0x3502, 0x00, 0xff, 1},
	{0x3508, 0x02, 0xff, 1},
	{0x3509, 0x00, 0xff, 1},
	{0x350a, 0x00, 0xff, 1},
	{0x350e, 0x00, 0xff, 1},
	{0x3510, 0x00, 0xff, 1},
	{0x3511, 0x02, 0xff, 1},
	{0x3512, 0x00, 0xff, 1},
	{0x3600, 0x2b, 0xff, 1},
	{0x3601, 0x52, 0xff, 1},
	{0x3602, 0x60, 0xff, 1},
	{0x3612, 0x05, 0xff, 1},
	{0x3613, 0xa4, 0xff, 1},
	{0x3620, 0x80, 0xff, 1},
	{0x3621, 0x10, 0xff, 1},
	{0x3622, 0x30, 0xff, 1},
	{0x3624, 0x1c, 0xff, 1},
	{0x3640, 0x10, 0xff, 1},
	{0x3641, 0x70, 0xff, 1},
	{0x3660, 0x04, 0xff, 1},
	{0x3661, 0x80, 0xff, 1},
	{0x3662, 0x12, 0xff, 1},
	{0x3664, 0x73, 0xff, 1},
	{0x3665, 0xa7, 0xff, 1},
	{0x366e, 0xff, 0xff, 1},
	{0x366f, 0xf4, 0xff, 1},
	{0x3674, 0x00, 0xff, 1},
	{0x3679, 0x0c, 0xff, 1},
	{0x367f, 0x01, 0xff, 1},
	{0x3680, 0x0c, 0xff, 1},
	{0x3681, 0x50, 0xff, 1},
	{0x3682, 0x50, 0xff, 1},
	{0x3683, 0xa9, 0xff, 1},
	{0x3684, 0xa9, 0xff, 1},
	{0x3706, 0x40, 0xff, 1},
	{0x3709, 0x5f, 0xff, 1},
	{0x3714, 0x24, 0xff, 1},
	{0x371a, 0x3e, 0xff, 1},
	{0x3737, 0x04, 0xff, 1},
	{0x3738, 0xcc, 0xff, 1},
	{0x3739, 0x12, 0xff, 1},
	{0x373d, 0x26, 0xff, 1},
	{0x3764, 0x20, 0xff, 1},
	{0x3765, 0x20, 0xff, 1},
	{0x37a1, 0x36, 0xff, 1},
	{0x37a8, 0x3b, 0xff, 1},
	{0x37ab, 0x31, 0xff, 1},
	{0x37c2, 0x04, 0xff, 1},
	{0x37c3, 0xf1, 0xff, 1},
	{0x37c5, 0x00, 0xff, 1},
	{0x37d8, 0x03, 0xff, 1},
	{0x37d9, 0x0c, 0xff, 1},
	{0x37da, 0xc2, 0xff, 1},
	{0x37dc, 0x02, 0xff, 1},
	{0x37e0, 0x00, 0xff, 1},
	{0x37e1, 0x0a, 0xff, 1},
	{0x37e2, 0x14, 0xff, 1},
	{0x37e3, 0x04, 0xff, 1},
	{0x37e4, 0x2A, 0xff, 1},
	{0x37e5, 0x03, 0xff, 1},
	{0x37e6, 0x04, 0xff, 1},
	{0x3800, 0x00, 0xff, 1},
	{0x3801, 0x00, 0xff, 1},
	{0x3802, 0x00, 0xff, 1},
	{0x3803, 0x08, 0xff, 1},
	{0x3804, 0x10, 0xff, 1},
	{0x3805, 0x9f, 0xff, 1},
	{0x3806, 0x0c, 0xff, 1},
	{0x3807, 0x57, 0xff, 1},
	{0x3808, 0x10, 0xff, 1},
	{0x3809, 0x80, 0xff, 1},
	{0x380a, 0x0c, 0xff, 1},
	{0x380b, 0x40, 0xff, 1},
	{0x380c, 0x04, 0xff, 1},
	{0x380d, 0x62, 0xff, 1},
	{0x380e, 0x0c, 0xff, 1},
	{0x380f, 0x8e, 0xff, 1},
	{0x3811, 0x10, 0xff, 1},
	{0x3813, 0x08, 0xff, 1},
	{0x3814, 0x01, 0xff, 1},
	{0x3815, 0x01, 0xff, 1},
	{0x3816, 0x01, 0xff, 1},
	{0x3817, 0x01, 0xff, 1},
	{0x3820, 0xa8, 0xff, 1},
	{0x3821, 0x00, 0xff, 1},
	{0x3822, 0xc2, 0xff, 1},
	{0x3823, 0x18, 0xff, 1},
	{0x3826, 0x11, 0xff, 1},
	{0x3827, 0x1c, 0xff, 1},
	{0x3829, 0x03, 0xff, 1},
	{0x3832, 0x00, 0xff, 1},
	{0x3c80, 0x00, 0xff, 1},
	{0x3c87, 0x01, 0xff, 1},
	{0x3c8c, 0x19, 0xff, 1},
	{0x3c8d, 0x1c, 0xff, 1},
	{0x3c90, 0x00, 0xff, 1},
	{0x3c91, 0x00, 0xff, 1},
	{0x3c92, 0x00, 0xff, 1},
	{0x3c93, 0x00, 0xff, 1},
	{0x3c94, 0x40, 0xff, 1},
	{0x3c95, 0x54, 0xff, 1},
	{0x3c96, 0x34, 0xff, 1},
	{0x3c97, 0x04, 0xff, 1},
	{0x3c98, 0x00, 0xff, 1},
	{0x3d8c, 0x73, 0xff, 1},
	{0x3d8d, 0xc0, 0xff, 1},
	{0x3f00, 0x0b, 0xff, 1},
	{0x3f03, 0x00, 0xff, 1},
	{0x4001, 0xe0, 0xff, 1},
	{0x4008, 0x00, 0xff, 1},
	{0x4009, 0x0f, 0xff, 1},
	{0x4011, 0xf0, 0xff, 1},
	{0x4017, 0x08, 0xff, 1},
	{0x4050, 0x04, 0xff, 1},
	{0x4051, 0x0b, 0xff, 1},
	{0x4052, 0x00, 0xff, 1},
	{0x4053, 0x80, 0xff, 1},
	{0x4054, 0x00, 0xff, 1},
	{0x4055, 0x80, 0xff, 1},
	{0x4056, 0x00, 0xff, 1},
	{0x4057, 0x80, 0xff, 1},
	{0x4058, 0x00, 0xff, 1},
	{0x4059, 0x80, 0xff, 1},
	{0x405e, 0x00, 0xff, 1},
	{0x4500, 0x07, 0xff, 1},
	{0x4503, 0x00, 0xff, 1},
	{0x450a, 0x04, 0xff, 1},
	{0x4800, 0x40, 0xff, 1},
	{0x4809, 0x04, 0xff, 1},
	{0x480c, 0x12, 0xff, 1},
	{0x481f, 0x30, 0xff, 1},
	{0x4833, 0x10, 0xff, 1},
	{0x4837, 0x0e, 0xff, 1},
	{0x4902, 0x01, 0xff, 1},
	{0x4d00, 0x03, 0xff, 1},
	{0x4d01, 0xc9, 0xff, 1},
	{0x4d02, 0xbc, 0xff, 1},
	{0x4d03, 0xd7, 0xff, 1},
	{0x4d04, 0xf0, 0xff, 1},
	{0x4d05, 0xa2, 0xff, 1},
	{0x5000, 0xfD, 0xff, 1},
	{0x5001, 0x01, 0xff, 1},
	{0x5040, 0x39, 0xff, 1},
	{0x5041, 0x10, 0xff, 1},
	{0x5042, 0x10, 0xff, 1},
	{0x5043, 0x84, 0xff, 1},
	{0x5044, 0x62, 0xff, 1},
	{0x5180, 0x00, 0xff, 1},
	{0x5181, 0x10, 0xff, 1},
	{0x5182, 0x02, 0xff, 1},
	{0x5183, 0x0f, 0xff, 1},
	{0x5200, 0x1b, 0xff, 1},
	{0x520b, 0x07, 0xff, 1},
	{0x520c, 0x0f, 0xff, 1},
	{0x5300, 0x04, 0xff, 1},
	{0x5301, 0x0C, 0xff, 1},
	{0x5302, 0x0C, 0xff, 1},
	{0x5303, 0x0f, 0xff, 1},
	{0x5304, 0x00, 0xff, 1},
	{0x5305, 0x70, 0xff, 1},
	{0x5306, 0x00, 0xff, 1},
	{0x5307, 0x80, 0xff, 1},
	{0x5308, 0x00, 0xff, 1},
	{0x5309, 0xa5, 0xff, 1},
	{0x530a, 0x00, 0xff, 1},
	{0x530b, 0xd3, 0xff, 1},
	{0x530c, 0x00, 0xff, 1},
	{0x530d, 0xf0, 0xff, 1},
	{0x530e, 0x01, 0xff, 1},
	{0x530f, 0x10, 0xff, 1},
	{0x5310, 0x01, 0xff, 1},
	{0x5311, 0x20, 0xff, 1},
	{0x5312, 0x01, 0xff, 1},
	{0x5313, 0x20, 0xff, 1},
	{0x5314, 0x01, 0xff, 1},
	{0x5315, 0x20, 0xff, 1},
	{0x5316, 0x08, 0xff, 1},
	{0x5317, 0x08, 0xff, 1},
	{0x5318, 0x10, 0xff, 1},
	{0x5319, 0x88, 0xff, 1},
	{0x531a, 0x88, 0xff, 1},
	{0x531b, 0xa9, 0xff, 1},
	{0x531c, 0xaa, 0xff, 1},
	{0x531d, 0x0a, 0xff, 1},
	{0x5405, 0x02, 0xff, 1},
	{0x5406, 0x67, 0xff, 1},
	{0x5407, 0x01, 0xff, 1},
	{0x5408, 0x4a, 0xff, 1},

	{ 0x0000, 0x0000, 0x0000, 0x0000 },
};

static acam_reg_t setting_4224_2376_4lane_1080m_30fps[] = {
	{0x0103, 0x01, 0xff, 1},
	{0x0300, 0x02, 0xff, 1},
	{0x0301, 0x00, 0xff, 1},
	{0x0302, 0x5a, 0xff, 1},
	{0x0303, 0x00, 0xff, 1},
	{0x0304, 0x00, 0xff, 1},
	{0x0305, 0x01, 0xff, 1},
	{0x030b, 0x06, 0xff, 1},
	{0x030c, 0x02, 0xff, 1},
	{0x030d, 0x88, 0xff, 1},
	{0x0312, 0x11, 0xff, 1},
	{0x3022, 0x01, 0xff, 1},
	{0x3012, 0x40, 0xff, 1},
	{0x3013, 0x72, 0xff, 1},
	{0x3016, 0x72, 0xff, 1},
	{0x301b, 0xF0, 0xff, 1},
	{0x301f, 0xd0, 0xff, 1},
	{0x3106, 0x15, 0xff, 1},
	{0x3107, 0x23, 0xff, 1},
	{0x3500, 0x00, 0xff, 1},
	{0x3501, 0x80, 0xff, 1},
	{0x3502, 0x00, 0xff, 1},
	{0x3508, 0x02, 0xff, 1},
	{0x3509, 0x00, 0xff, 1},
	{0x350a, 0x00, 0xff, 1},
	{0x350e, 0x00, 0xff, 1},
	{0x3510, 0x00, 0xff, 1},
	{0x3511, 0x02, 0xff, 1},
	{0x3512, 0x00, 0xff, 1},
	{0x3600, 0x2b, 0xff, 1},
	{0x3601, 0x52, 0xff, 1},
	{0x3602, 0x60, 0xff, 1},
	{0x3612, 0x05, 0xff, 1},
	{0x3613, 0xa4, 0xff, 1},
	{0x3620, 0x80, 0xff, 1},
	{0x3621, 0x10, 0xff, 1},
	{0x3622, 0x30, 0xff, 1},
	{0x3624, 0x1c, 0xff, 1},
	{0x3640, 0x10, 0xff, 1},
	{0x3641, 0x70, 0xff, 1},
	{0x3660, 0x04, 0xff, 1},
	{0x3661, 0x80, 0xff, 1},
	{0x3662, 0x12, 0xff, 1},
	{0x3664, 0x73, 0xff, 1},
	{0x3665, 0xa7, 0xff, 1},
	{0x366e, 0xff, 0xff, 1},
	{0x366f, 0xf4, 0xff, 1},
	{0x3674, 0x00, 0xff, 1},
	{0x3679, 0x0c, 0xff, 1},
	{0x367f, 0x01, 0xff, 1},
	{0x3680, 0x0c, 0xff, 1},
	{0x3681, 0x50, 0xff, 1},
	{0x3682, 0x50, 0xff, 1},
	{0x3683, 0xa9, 0xff, 1},
	{0x3684, 0xa9, 0xff, 1},
	{0x3706, 0x40, 0xff, 1},
	{0x3709, 0x5f, 0xff, 1},
	{0x3714, 0x24, 0xff, 1},
	{0x371a, 0x3e, 0xff, 1},
	{0x3737, 0x04, 0xff, 1},
	{0x3738, 0xcc, 0xff, 1},
	{0x3739, 0x12, 0xff, 1},
	{0x373d, 0x26, 0xff, 1},
	{0x3764, 0x20, 0xff, 1},
	{0x3765, 0x20, 0xff, 1},
	{0x37a1, 0x36, 0xff, 1},
	{0x37a8, 0x3b, 0xff, 1},
	{0x37ab, 0x31, 0xff, 1},
	{0x37c2, 0x04, 0xff, 1},
	{0x37c3, 0xf1, 0xff, 1},
	{0x37c5, 0x00, 0xff, 1},
	{0x37d8, 0x03, 0xff, 1},
	{0x37d9, 0x0c, 0xff, 1},
	{0x37da, 0xc2, 0xff, 1},
	{0x37dc, 0x02, 0xff, 1},
	{0x37e0, 0x00, 0xff, 1},
	{0x37e1, 0x0a, 0xff, 1},
	{0x37e2, 0x14, 0xff, 1},
	{0x37e3, 0x04, 0xff, 1},
	{0x37e4, 0x2A, 0xff, 1},
	{0x37e5, 0x03, 0xff, 1},
	{0x37e6, 0x04, 0xff, 1},
	{0x3800, 0x00, 0xff, 1},
	{0x3801, 0x00, 0xff, 1},
	{0x3802, 0x00, 0xff, 1},
	{0x3803, 0x08, 0xff, 1},
	{0x3804, 0x10, 0xff, 1},
	{0x3805, 0x9f, 0xff, 1},
	{0x3806, 0x0c, 0xff, 1},
	{0x3807, 0x57, 0xff, 1},
	{0x3808, 0x10, 0xff, 1},
	{0x3809, 0x80, 0xff, 1},
	{0x380a, 0x0c, 0xff, 1},
	{0x380b, 0x40, 0xff, 1},
	{0x380c, 0x04, 0xff, 1},
	{0x380d, 0x62, 0xff, 1},
	{0x380e, 0x0c, 0xff, 1},
	{0x380f, 0x8e, 0xff, 1},
	{0x3811, 0x10, 0xff, 1},
	{0x3813, 0x08, 0xff, 1},
	{0x3814, 0x01, 0xff, 1},
	{0x3815, 0x01, 0xff, 1},
	{0x3816, 0x01, 0xff, 1},
	{0x3817, 0x01, 0xff, 1},
	{0x3820, 0xa8, 0xff, 1},
	{0x3821, 0x00, 0xff, 1},
	{0x3822, 0xc2, 0xff, 1},
	{0x3823, 0x18, 0xff, 1},
	{0x3826, 0x11, 0xff, 1},
	{0x3827, 0x1c, 0xff, 1},
	{0x3829, 0x03, 0xff, 1},
	{0x3832, 0x00, 0xff, 1},
	{0x3c80, 0x00, 0xff, 1},
	{0x3c87, 0x01, 0xff, 1},
	{0x3c8c, 0x19, 0xff, 1},
	{0x3c8d, 0x1c, 0xff, 1},
	{0x3c90, 0x00, 0xff, 1},
	{0x3c91, 0x00, 0xff, 1},
	{0x3c92, 0x00, 0xff, 1},
	{0x3c93, 0x00, 0xff, 1},
	{0x3c94, 0x40, 0xff, 1},
	{0x3c95, 0x54, 0xff, 1},
	{0x3c96, 0x34, 0xff, 1},
	{0x3c97, 0x04, 0xff, 1},
	{0x3c98, 0x00, 0xff, 1},
	{0x3d8c, 0x73, 0xff, 1},
	{0x3d8d, 0xc0, 0xff, 1},
	{0x3f00, 0x0b, 0xff, 1},
	{0x3f03, 0x00, 0xff, 1},
	{0x4001, 0xe0, 0xff, 1},
	{0x4008, 0x00, 0xff, 1},
	{0x4009, 0x0f, 0xff, 1},
	{0x4011, 0xf0, 0xff, 1},
	{0x4017, 0x08, 0xff, 1},
	{0x4050, 0x04, 0xff, 1},
	{0x4051, 0x0b, 0xff, 1},
	{0x4052, 0x00, 0xff, 1},
	{0x4053, 0x80, 0xff, 1},
	{0x4054, 0x00, 0xff, 1},
	{0x4055, 0x80, 0xff, 1},
	{0x4056, 0x00, 0xff, 1},
	{0x4057, 0x80, 0xff, 1},
	{0x4058, 0x00, 0xff, 1},
	{0x4059, 0x80, 0xff, 1},
	{0x405e, 0x00, 0xff, 1},
	{0x4500, 0x07, 0xff, 1},
	{0x4503, 0x00, 0xff, 1},
	{0x450a, 0x04, 0xff, 1},
	{0x4800, 0x40, 0xff, 1},
	{0x4809, 0x04, 0xff, 1},
	{0x480c, 0x12, 0xff, 1},
	{0x481f, 0x30, 0xff, 1},
	{0x4833, 0x10, 0xff, 1},
	{0x4837, 0x0e, 0xff, 1},
	{0x4902, 0x01, 0xff, 1},
	{0x4d00, 0x03, 0xff, 1},
	{0x4d01, 0xc9, 0xff, 1},
	{0x4d02, 0xbc, 0xff, 1},
	{0x4d03, 0xd7, 0xff, 1},
	{0x4d04, 0xf0, 0xff, 1},
	{0x4d05, 0xa2, 0xff, 1},
	{0x5000, 0xfD, 0xff, 1},
	{0x5001, 0x01, 0xff, 1},
	{0x5040, 0x39, 0xff, 1},
	{0x5041, 0x10, 0xff, 1},
	{0x5042, 0x10, 0xff, 1},
	{0x5043, 0x84, 0xff, 1},
	{0x5044, 0x62, 0xff, 1},
	{0x5180, 0x00, 0xff, 1},
	{0x5181, 0x10, 0xff, 1},
	{0x5182, 0x02, 0xff, 1},
	{0x5183, 0x0f, 0xff, 1},
	{0x5200, 0x1b, 0xff, 1},
	{0x520b, 0x07, 0xff, 1},
	{0x520c, 0x0f, 0xff, 1},
	{0x5300, 0x04, 0xff, 1},
	{0x5301, 0x0C, 0xff, 1},
	{0x5302, 0x0C, 0xff, 1},
	{0x5303, 0x0f, 0xff, 1},
	{0x5304, 0x00, 0xff, 1},
	{0x5305, 0x70, 0xff, 1},
	{0x5306, 0x00, 0xff, 1},
	{0x5307, 0x80, 0xff, 1},
	{0x5308, 0x00, 0xff, 1},
	{0x5309, 0xa5, 0xff, 1},
	{0x530a, 0x00, 0xff, 1},
	{0x530b, 0xd3, 0xff, 1},
	{0x530c, 0x00, 0xff, 1},
	{0x530d, 0xf0, 0xff, 1},
	{0x530e, 0x01, 0xff, 1},
	{0x530f, 0x10, 0xff, 1},
	{0x5310, 0x01, 0xff, 1},
	{0x5311, 0x20, 0xff, 1},
	{0x5312, 0x01, 0xff, 1},
	{0x5313, 0x20, 0xff, 1},
	{0x5314, 0x01, 0xff, 1},
	{0x5315, 0x20, 0xff, 1},
	{0x5316, 0x08, 0xff, 1},
	{0x5317, 0x08, 0xff, 1},
	{0x5318, 0x10, 0xff, 1},
	{0x5319, 0x88, 0xff, 1},
	{0x531a, 0x88, 0xff, 1},
	{0x531b, 0xa9, 0xff, 1},
	{0x531c, 0xaa, 0xff, 1},
	{0x531d, 0x0a, 0xff, 1},
	{0x5405, 0x02, 0xff, 1},
	{0x5406, 0x67, 0xff, 1},
	{0x5407, 0x01, 0xff, 1},
	{0x5408, 0x4a, 0xff, 1},

	{ 0x0000, 0x0000, 0x0000, 0x0000 },
};

static acam_reg_t setting_2112_1568_4lane_540m_60fps[] = {
	{0x0103, 0x01, 0xff, 1},
	{0x0300, 0x02, 0xff, 1},
	{0x0301, 0x00, 0xff, 1},
	{0x0302, 0x5a, 0xff, 1},
	{0x0303, 0x00, 0xff, 1},
	{0x0304, 0x00, 0xff, 1},
	{0x0305, 0x01, 0xff, 1},
	{0x030b, 0x06, 0xff, 1},
	{0x030c, 0x02, 0xff, 1},
	{0x030d, 0x88, 0xff, 1},
	{0x0312, 0x11, 0xff, 1},
	{0x3022, 0x01, 0xff, 1},
	{0x3012, 0x40, 0xff, 1},
	{0x3013, 0x72, 0xff, 1},
	{0x3016, 0x72, 0xff, 1},
	{0x301b, 0xF0, 0xff, 1},
	{0x301f, 0xd0, 0xff, 1},
	{0x3106, 0x15, 0xff, 1},
	{0x3107, 0x23, 0xff, 1},
	{0x3500, 0x00, 0xff, 1},
	{0x3501, 0x80, 0xff, 1},
	{0x3502, 0x00, 0xff, 1},
	{0x3508, 0x02, 0xff, 1},
	{0x3509, 0x00, 0xff, 1},
	{0x350a, 0x00, 0xff, 1},
	{0x350e, 0x00, 0xff, 1},
	{0x3510, 0x00, 0xff, 1},
	{0x3511, 0x02, 0xff, 1},
	{0x3512, 0x00, 0xff, 1},
	{0x3600, 0x2b, 0xff, 1},
	{0x3601, 0x52, 0xff, 1},
	{0x3602, 0x60, 0xff, 1},
	{0x3612, 0x05, 0xff, 1},
	{0x3613, 0xa4, 0xff, 1},
	{0x3620, 0x80, 0xff, 1},
	{0x3621, 0x10, 0xff, 1},
	{0x3622, 0x30, 0xff, 1},
	{0x3624, 0x1c, 0xff, 1},
	{0x3640, 0x10, 0xff, 1},
	{0x3641, 0x70, 0xff, 1},
	{0x3660, 0x04, 0xff, 1},
	{0x3661, 0x80, 0xff, 1},
	{0x3662, 0x12, 0xff, 1},
	{0x3664, 0x73, 0xff, 1},
	{0x3665, 0xa7, 0xff, 1},
	{0x366e, 0xff, 0xff, 1},
	{0x366f, 0xf4, 0xff, 1},
	{0x3674, 0x00, 0xff, 1},
	{0x3679, 0x0c, 0xff, 1},
	{0x367f, 0x01, 0xff, 1},
	{0x3680, 0x0c, 0xff, 1},
	{0x3681, 0x50, 0xff, 1},
	{0x3682, 0x50, 0xff, 1},
	{0x3683, 0xa9, 0xff, 1},
	{0x3684, 0xa9, 0xff, 1},
	{0x3706, 0x40, 0xff, 1},
	{0x3709, 0x5f, 0xff, 1},
	{0x3714, 0x24, 0xff, 1},
	{0x371a, 0x3e, 0xff, 1},
	{0x3737, 0x04, 0xff, 1},
	{0x3738, 0xcc, 0xff, 1},
	{0x3739, 0x12, 0xff, 1},
	{0x373d, 0x26, 0xff, 1},
	{0x3764, 0x20, 0xff, 1},
	{0x3765, 0x20, 0xff, 1},
	{0x37a1, 0x36, 0xff, 1},
	{0x37a8, 0x3b, 0xff, 1},
	{0x37ab, 0x31, 0xff, 1},
	{0x37c2, 0x04, 0xff, 1},
	{0x37c3, 0xf1, 0xff, 1},
	{0x37c5, 0x00, 0xff, 1},
	{0x37d8, 0x03, 0xff, 1},
	{0x37d9, 0x0c, 0xff, 1},
	{0x37da, 0xc2, 0xff, 1},
	{0x37dc, 0x02, 0xff, 1},
	{0x37e0, 0x00, 0xff, 1},
	{0x37e1, 0x0a, 0xff, 1},
	{0x37e2, 0x14, 0xff, 1},
	{0x37e3, 0x04, 0xff, 1},
	{0x37e4, 0x2A, 0xff, 1},
	{0x37e5, 0x03, 0xff, 1},
	{0x37e6, 0x04, 0xff, 1},
	{0x3800, 0x00, 0xff, 1},
	{0x3801, 0x00, 0xff, 1},
	{0x3802, 0x00, 0xff, 1},
	{0x3803, 0x08, 0xff, 1},
	{0x3804, 0x10, 0xff, 1},
	{0x3805, 0x9f, 0xff, 1},
	{0x3806, 0x0c, 0xff, 1},
	{0x3807, 0x57, 0xff, 1},
	{0x3808, 0x10, 0xff, 1},
	{0x3809, 0x80, 0xff, 1},
	{0x380a, 0x0c, 0xff, 1},
	{0x380b, 0x40, 0xff, 1},
	{0x380c, 0x04, 0xff, 1},
	{0x380d, 0x62, 0xff, 1},
	{0x380e, 0x0c, 0xff, 1},
	{0x380f, 0x8e, 0xff, 1},
	{0x3811, 0x10, 0xff, 1},
	{0x3813, 0x08, 0xff, 1},
	{0x3814, 0x01, 0xff, 1},
	{0x3815, 0x01, 0xff, 1},
	{0x3816, 0x01, 0xff, 1},
	{0x3817, 0x01, 0xff, 1},
	{0x3820, 0xa8, 0xff, 1},
	{0x3821, 0x00, 0xff, 1},
	{0x3822, 0xc2, 0xff, 1},
	{0x3823, 0x18, 0xff, 1},
	{0x3826, 0x11, 0xff, 1},
	{0x3827, 0x1c, 0xff, 1},
	{0x3829, 0x03, 0xff, 1},
	{0x3832, 0x00, 0xff, 1},
	{0x3c80, 0x00, 0xff, 1},
	{0x3c87, 0x01, 0xff, 1},
	{0x3c8c, 0x19, 0xff, 1},
	{0x3c8d, 0x1c, 0xff, 1},
	{0x3c90, 0x00, 0xff, 1},
	{0x3c91, 0x00, 0xff, 1},
	{0x3c92, 0x00, 0xff, 1},
	{0x3c93, 0x00, 0xff, 1},
	{0x3c94, 0x40, 0xff, 1},
	{0x3c95, 0x54, 0xff, 1},
	{0x3c96, 0x34, 0xff, 1},
	{0x3c97, 0x04, 0xff, 1},
	{0x3c98, 0x00, 0xff, 1},
	{0x3d8c, 0x73, 0xff, 1},
	{0x3d8d, 0xc0, 0xff, 1},
	{0x3f00, 0x0b, 0xff, 1},
	{0x3f03, 0x00, 0xff, 1},
	{0x4001, 0xe0, 0xff, 1},
	{0x4008, 0x00, 0xff, 1},
	{0x4009, 0x0f, 0xff, 1},
	{0x4011, 0xf0, 0xff, 1},
	{0x4017, 0x08, 0xff, 1},
	{0x4050, 0x04, 0xff, 1},
	{0x4051, 0x0b, 0xff, 1},
	{0x4052, 0x00, 0xff, 1},
	{0x4053, 0x80, 0xff, 1},
	{0x4054, 0x00, 0xff, 1},
	{0x4055, 0x80, 0xff, 1},
	{0x4056, 0x00, 0xff, 1},
	{0x4057, 0x80, 0xff, 1},
	{0x4058, 0x00, 0xff, 1},
	{0x4059, 0x80, 0xff, 1},
	{0x405e, 0x00, 0xff, 1},
	{0x4500, 0x07, 0xff, 1},
	{0x4503, 0x00, 0xff, 1},
	{0x450a, 0x04, 0xff, 1},
	{0x4800, 0x40, 0xff, 1},
	{0x4809, 0x04, 0xff, 1},
	{0x480c, 0x12, 0xff, 1},
	{0x481f, 0x30, 0xff, 1},
	{0x4833, 0x10, 0xff, 1},
	{0x4837, 0x0e, 0xff, 1},
	{0x4902, 0x01, 0xff, 1},
	{0x4d00, 0x03, 0xff, 1},
	{0x4d01, 0xc9, 0xff, 1},
	{0x4d02, 0xbc, 0xff, 1},
	{0x4d03, 0xd7, 0xff, 1},
	{0x4d04, 0xf0, 0xff, 1},
	{0x4d05, 0xa2, 0xff, 1},
	{0x5000, 0xfD, 0xff, 1},
	{0x5001, 0x01, 0xff, 1},
	{0x5040, 0x39, 0xff, 1},
	{0x5041, 0x10, 0xff, 1},
	{0x5042, 0x10, 0xff, 1},
	{0x5043, 0x84, 0xff, 1},
	{0x5044, 0x62, 0xff, 1},
	{0x5180, 0x00, 0xff, 1},
	{0x5181, 0x10, 0xff, 1},
	{0x5182, 0x02, 0xff, 1},
	{0x5183, 0x0f, 0xff, 1},
	{0x5200, 0x1b, 0xff, 1},
	{0x520b, 0x07, 0xff, 1},
	{0x520c, 0x0f, 0xff, 1},
	{0x5300, 0x04, 0xff, 1},
	{0x5301, 0x0C, 0xff, 1},
	{0x5302, 0x0C, 0xff, 1},
	{0x5303, 0x0f, 0xff, 1},
	{0x5304, 0x00, 0xff, 1},
	{0x5305, 0x70, 0xff, 1},
	{0x5306, 0x00, 0xff, 1},
	{0x5307, 0x80, 0xff, 1},
	{0x5308, 0x00, 0xff, 1},
	{0x5309, 0xa5, 0xff, 1},
	{0x530a, 0x00, 0xff, 1},
	{0x530b, 0xd3, 0xff, 1},
	{0x530c, 0x00, 0xff, 1},
	{0x530d, 0xf0, 0xff, 1},
	{0x530e, 0x01, 0xff, 1},
	{0x530f, 0x10, 0xff, 1},
	{0x5310, 0x01, 0xff, 1},
	{0x5311, 0x20, 0xff, 1},
	{0x5312, 0x01, 0xff, 1},
	{0x5313, 0x20, 0xff, 1},
	{0x5314, 0x01, 0xff, 1},
	{0x5315, 0x20, 0xff, 1},
	{0x5316, 0x08, 0xff, 1},
	{0x5317, 0x08, 0xff, 1},
	{0x5318, 0x10, 0xff, 1},
	{0x5319, 0x88, 0xff, 1},
	{0x531a, 0x88, 0xff, 1},
	{0x531b, 0xa9, 0xff, 1},
	{0x531c, 0xaa, 0xff, 1},
	{0x531d, 0x0a, 0xff, 1},
	{0x5405, 0x02, 0xff, 1},
	{0x5406, 0x67, 0xff, 1},
	{0x5407, 0x01, 0xff, 1},
	{0x5408, 0x4a, 0xff, 1},

	{ 0x0000, 0x0000, 0x0000, 0x0000 },
};

static acam_reg_t setting_hdr_4224_3136_4lane_1080m_30fps[] = {
	{0x0103, 0x01, 0xff, 1},
	{0x0103, 0x01, 0xff, 1},
	{0x0300, 0x02, 0xff, 1},
	{0x0301, 0x00, 0xff, 1},
	{0x0302, 0x5a, 0xff, 1},
	{0x0303, 0x00, 0xff, 1},
	{0x0304, 0x00, 0xff, 1},
	{0x0305, 0x01, 0xff, 1},
	{0x3022, 0x01, 0xff, 1},
	{0x3013, 0x32, 0xff, 1},
	{0x3016, 0x72, 0xff, 1},
	{0x301b, 0xf0, 0xff, 1},
	{0x301f, 0xd0, 0xff, 1},
	{0x3106, 0x15, 0xff, 1},
	{0x3107, 0x23, 0xff, 1},
	{0x3500, 0x00, 0xff, 1},
	{0x3501, 0x80, 0xff, 1},
	{0x3502, 0x00, 0xff, 1},
	{0x3508, 0x02, 0xff, 1},
	{0x3509, 0x00, 0xff, 1},
	{0x350a, 0x00, 0xff, 1},
	{0x350e, 0x00, 0xff, 1},
	{0x3510, 0x00, 0xff, 1},
	{0x3511, 0x40, 0xff, 1},
	{0x3512, 0x00, 0xff, 1},
	{0x3600, 0x2b, 0xff, 1},
	{0x3601, 0x52, 0xff, 1},
	{0x3602, 0x60, 0xff, 1},
	{0x3612, 0x05, 0xff, 1},
	{0x3613, 0xa4, 0xff, 1},
	{0x3620, 0x80, 0xff, 1},
	{0x3621, 0x10, 0xff, 1},
	{0x3622, 0x30, 0xff, 1},
	{0x3624, 0x1c, 0xff, 1},
	{0x3640, 0x10, 0xff, 1},
	{0x3641, 0x70, 0xff, 1},
	{0x3661, 0x80, 0xff, 1},
	{0x3662, 0x14, 0xff, 1},
	{0x3664, 0x73, 0xff, 1},
	{0x3665, 0xa7, 0xff, 1},
	{0x366e, 0xff, 0xff, 1},
	{0x366f, 0xf4, 0xff, 1},
	{0x3674, 0x00, 0xff, 1},
	{0x3679, 0x0c, 0xff, 1},
	{0x367f, 0x01, 0xff, 1},
	{0x3680, 0x0c, 0xff, 1},
	{0x3681, 0x50, 0xff, 1},
	{0x3682, 0x50, 0xff, 1},
	{0x3683, 0xa9, 0xff, 1},
	{0x3684, 0xa9, 0xff, 1},
	{0x3709, 0x68, 0xff, 1},
	{0x3714, 0x28, 0xff, 1},
	{0x371a, 0x3e, 0xff, 1},
	{0x3737, 0x04, 0xff, 1},
	{0x3738, 0xcc, 0xff, 1},
	{0x3739, 0x14, 0xff, 1},
	{0x373d, 0x26, 0xff, 1},
	{0x3764, 0x20, 0xff, 1},
	{0x3765, 0x20, 0xff, 1},
	{0x37a1, 0x36, 0xff, 1},
	{0x37a8, 0x3b, 0xff, 1},
	{0x37ab, 0x31, 0xff, 1},
	{0x37c2, 0x04, 0xff, 1},
	{0x37c3, 0xf1, 0xff, 1},
	{0x37c5, 0x00, 0xff, 1},
	{0x37d8, 0x03, 0xff, 1},
	{0x37d9, 0x0c, 0xff, 1},
	{0x37da, 0xc2, 0xff, 1},
	{0x37dc, 0x02, 0xff, 1},
	{0x37e0, 0x00, 0xff, 1},
	{0x37e1, 0x0a, 0xff, 1},
	{0x37e2, 0x14, 0xff, 1},
	{0x37e3, 0x04, 0xff, 1},
	{0x37e4, 0x2a, 0xff, 1},
	{0x37e5, 0x03, 0xff, 1},
	{0x37e6, 0x04, 0xff, 1},
	{0x3800, 0x00, 0xff, 1},
	{0x3801, 0x00, 0xff, 1},
	{0x3802, 0x00, 0xff, 1},
	{0x3803, 0x08, 0xff, 1},
	{0x3804, 0x10, 0xff, 1},
	{0x3805, 0x9f, 0xff, 1},
	{0x3806, 0x0c, 0xff, 1},
	{0x3807, 0x57, 0xff, 1},
	{0x3808, 0x10, 0xff, 1},
	{0x3809, 0x80, 0xff, 1},
	{0x380a, 0x0c, 0xff, 1},
	{0x380b, 0x40, 0xff, 1},
	{0x380c, 0x04, 0xff, 1},
	{0x380d, 0x62, 0xff, 1},
	{0x380e, 0x0c, 0xff, 1},
	{0x380f, 0x8e, 0xff, 1},
	{0x3811, 0x10, 0xff, 1},
	{0x3813, 0x08, 0xff, 1},
	{0x3814, 0x01, 0xff, 1},
	{0x3815, 0x01, 0xff, 1},
	{0x3816, 0x01, 0xff, 1},
	{0x3817, 0x01, 0xff, 1},
	{0x3820, 0xa8, 0xff, 1},
	{0x3821, 0x02, 0xff, 1},
	{0x3822, 0xc2, 0xff, 1},
	{0x3823, 0x18, 0xff, 1},
	{0x3826, 0x11, 0xff, 1},
	{0x3827, 0x1c, 0xff, 1},
	{0x3829, 0x03, 0xff, 1},
	{0x3832, 0x00, 0xff, 1},
	{0x3c80, 0x00, 0xff, 1},
	{0x3c87, 0x01, 0xff, 1},
	{0x3c8c, 0x19, 0xff, 1},
	{0x3c8d, 0x1c, 0xff, 1},
	{0x3c90, 0x00, 0xff, 1},
	{0x3c91, 0x00, 0xff, 1},
	{0x3c92, 0x00, 0xff, 1},
	{0x3c93, 0x00, 0xff, 1},
	{0x3c94, 0x40, 0xff, 1},
	{0x3c95, 0x54, 0xff, 1},
	{0x3c96, 0x34, 0xff, 1},
	{0x3c97, 0x04, 0xff, 1},
	{0x3c98, 0x00, 0xff, 1},
	{0x3d8c, 0x73, 0xff, 1},
	{0x3d8d, 0xc0, 0xff, 1},
	{0x3f00, 0x0b, 0xff, 1},
	{0x3f03, 0x00, 0xff, 1},
	{0x4001, 0xe0, 0xff, 1},
	{0x4008, 0x00, 0xff, 1},
	{0x4009, 0x0f, 0xff, 1},
	{0x4011, 0xf0, 0xff, 1},
	{0x4017, 0x08, 0xff, 1},
	{0x4050, 0x04, 0xff, 1},
	{0x4051, 0x0b, 0xff, 1},
	{0x4052, 0x00, 0xff, 1},
	{0x4053, 0x80, 0xff, 1},
	{0x4054, 0x00, 0xff, 1},
	{0x4055, 0x80, 0xff, 1},
	{0x4056, 0x00, 0xff, 1},
	{0x4057, 0x80, 0xff, 1},
	{0x4058, 0x00, 0xff, 1},
	{0x4059, 0x80, 0xff, 1},
	{0x405e, 0x20, 0xff, 1},
	{0x4500, 0x07, 0xff, 1},
	{0x4503, 0x00, 0xff, 1},
	{0x450a, 0x04, 0xff, 1},
	{0x4809, 0x04, 0xff, 1},
	{0x480c, 0x12, 0xff, 1},
	{0x481f, 0x30, 0xff, 1},
	{0x4833, 0x10, 0xff, 1},
	{0x4837, 0x0e, 0xff, 1},
	{0x4902, 0x01, 0xff, 1},
	{0x4d00, 0x03, 0xff, 1},
	{0x4d01, 0xc9, 0xff, 1},
	{0x4d02, 0xbc, 0xff, 1},
	{0x4d03, 0xd7, 0xff, 1},
	{0x4d04, 0xf0, 0xff, 1},
	{0x4d05, 0xa2, 0xff, 1},
	{0x5000, 0xed, 0xff, 1},
	{0x5001, 0x01, 0xff, 1},
	{0x5040, 0x39, 0xff, 1},
	{0x5041, 0x10, 0xff, 1},
	{0x5042, 0x10, 0xff, 1},
	{0x5043, 0x84, 0xff, 1},
	{0x5044, 0x62, 0xff, 1},
	{0x5180, 0x00, 0xff, 1},
	{0x5181, 0x10, 0xff, 1},
	{0x5182, 0x02, 0xff, 1},
	{0x5183, 0x0f, 0xff, 1},
	{0x5200, 0x1b, 0xff, 1},
	{0x520b, 0x07, 0xff, 1},
	{0x520c, 0x0f, 0xff, 1},
	{0x5300, 0x04, 0xff, 1},
	{0x5301, 0x0c, 0xff, 1},
	{0x5302, 0x0c, 0xff, 1},
	{0x5303, 0x0f, 0xff, 1},
	{0x5304, 0x00, 0xff, 1},
	{0x5305, 0x70, 0xff, 1},
	{0x5306, 0x00, 0xff, 1},
	{0x5307, 0x80, 0xff, 1},
	{0x5308, 0x00, 0xff, 1},
	{0x5309, 0xa5, 0xff, 1},
	{0x530a, 0x00, 0xff, 1},
	{0x530b, 0xd3, 0xff, 1},
	{0x530c, 0x00, 0xff, 1},
	{0x530d, 0xf0, 0xff, 1},
	{0x530e, 0x01, 0xff, 1},
	{0x530f, 0x10, 0xff, 1},
	{0x5310, 0x01, 0xff, 1},
	{0x5311, 0x20, 0xff, 1},
	{0x5312, 0x01, 0xff, 1},
	{0x5313, 0x20, 0xff, 1},
	{0x5314, 0x01, 0xff, 1},
	{0x5315, 0x20, 0xff, 1},
	{0x5316, 0x08, 0xff, 1},
	{0x5317, 0x08, 0xff, 1},
	{0x5318, 0x10, 0xff, 1},
	{0x5319, 0x88, 0xff, 1},
	{0x531a, 0x88, 0xff, 1},
	{0x531b, 0xa9, 0xff, 1},
	{0x531c, 0xaa, 0xff, 1},
	{0x531d, 0x0a, 0xff, 1},
	{0x5405, 0x02, 0xff, 1},
	{0x5406, 0x67, 0xff, 1},
	{0x5407, 0x01, 0xff, 1},
	{0x5408, 0x4a, 0xff, 1},

	{ 0x0000, 0x0000, 0x0000, 0x0000 },
};

static acam_reg_t settings_context_ov13858[] = {
    //stop sequence - address is 0x0000
    { 0x0000, 0x0000, 0x0000, 0x0000 }
};

static const acam_reg_t *seq_table[] = {
    setting_4224_3136_4lane_1080m_30fps,
    setting_4224_2376_4lane_1080m_30fps,
    setting_2112_1568_4lane_540m_60fps,
    setting_hdr_4224_3136_4lane_1080m_30fps,
};

static const acam_reg_t *isp_seq_table[] = {
    settings_context_ov13858,
};


#define SENSOR__OV13858_SEQUENCE_DEFAULT seq_table
#define SENSOR__OV13858_ISP_SEQUENCE_DEFAULT seq_table


#define SENSOR_OV13858_SEQUENCE_DEFAULT_INIT    0
#define SENSOR_OV13858_SEQUENCE_DEFAULT_PREVIEW    1
#define SENSOR_OV13858_SEQUENCE_SECOND_PREVIEW    2
#define SENSOR_OV13858_SEQUENCE_THIRD_PREVIEW    3
#define SENSOR_OV13858_SEQUENCE_S2_PREVIEW    4
#define SENSOR_OV13858_SEQUENCE_S4_PREVIEW    5

#define SENSOR_OV13858_ISP_CONTEXT_SEQ   0


#endif /* __OV08A10_SENSOR_H__ */
